package com.market.enums;

public enum StateEnum {
    CAPTCHA_SEND_SUCCESS(100),//验证码发送成功
    CAPTCHA_SEND_FAIL(101),//验证码发送失败
    REGISTRY_SUCCESS(200),//注册成功
    REGISTRY_FAIL(201),//注册失败
    LOGIN_SUCCESS(300), //登录成功
    LOGIN_FAIL(301), //登录失败
    QUERY_BUYER_SUCCESS(400),//查询买家成功
    QUERY_BUYER_FAIL(401),//查询买家失败
    UPDATE_ADDRESS_SUCCESS(110),//修改地址成功
    UPDATE_ADDRESS_FAIL(111),//修改地址失败
    UPDATE_BUYER_INFO_SUCCESS(120),//修改买家信息成功
    UPDATE_BUYER_INFO_FAIL(121),//修改买家信息失败
    QUERY_GOODS_SUCCESS(130),//查询商品成功
    QUERY_GOODS_FAIL(131),//查询商品失败
    CREATE_EMPTY_ORDER_SUCCESS(140),//创建空订单成功
    CREATE_EMPTY_ORDER_FAIL(141),//创建空订单失败
    ADD_ORDER_DETAIL_SUCCESS(150),//添加订单详情成功
    ADD_ORDER_DETAIL_FAIL(151),//添加订单详情失败
    PAY_SUCCESS(160),//支付成功
    PAY_FAIL(161),//支付失败
    CONFIRM_RECEIPT_SUCCESS(170),//确认收货成功
    CONFIRM_RECEIPT_FAIL(171),//确认收货失败
    LOCK_BUYER_SUCCESS(180),//锁定买家成功
    LOCK_BUYER_FAIL(181),//锁定买家失败
    UNLOCK_BUYER_SUCCESS(190),//解锁买家成功
    UNLOCK_BUYER_FAIL(191),//解锁买家失败
    LOCK_BACKSTAGE_SUCCESS(320),//锁定后台人员成功
    LOCK_BACKSTAGE_FAIL(321),//锁定后台人员失败
    UNLOCK_BACKSTAGE_SUCCESS(330),//解锁后台人员成功
    UNLOCK_BACKSTAGE_FAIL(331),//解锁后台人员失败
    APPLY_RETURN_GOODS_SUCCESS(210),//申请退货成功
    APPLY_RETURN_GOODS_FAIL(211),//申请退货失败
    CHARGE_SUCCESS(220),//充值成功
    CHARGE_FAIL(221),//充值失败
    ADD_STORE_ID_SUCCESS(230),//添加小店id成功
    ADD_STORE_ID_FAIL(231),//添加小店id失败
    ADD_TO_SHOP_CART_SUCCESS(240),//加入购物车成功
    ADD_TO_SHOP_CART_FAIL(241),//加入购物车失败
    QUERY_SEND_BACK_SUCCESS(250),//查询退货单成功
    QUERY_SEND_BACK_FAIL(251),//查询退货单失败
    ACCOUNT_NOT_EXIST(260),//账号不存在
    ROLE_NOT_EXIST(270),//该角色不存在
    PASSWORD_ERROR(280),//密码错误
    ADD_BACKSTAGE_SUCCESS(290),//添加后台人员成功
    ADD_BACKSTAGE_FAIL(291),//添加后台人员失败
    QUERY_BACKSTAGE_SUCCESS(310),//查询后台人员成功
    QUERY_BACKSTAGE_FAIL(311),//查询后台人员失败
    UPDATE_BACKSTAGE_AUTHORITY_SUCCESS(340),//修改后台人员权限成功
    UPDATE_BACKSTAGE_AUTHORITY_FAIL(341),//修改后台人员权限失败
    DELETE_BACKSTAGE_SUCCESS(345),//删除后台人员成功
    DELETE_BACKSTAGE_FAIL(348),//删除后台人员成失败
    ADD_GOODS_SUCCESS(350),//新增商品成功
    ADD_GOODS_FAIL(351),//新增商品失败
    SHELVE_GOODS_SUCCESS(360),//商品上架成功
    SHELVE_GOODS_FAIL(361),//商品上架失败
    OFF_SHELVE_GOODS_SUCCESS(370),//商品下架失败
    OFF_SHELVE_GOODS_FAIL(371),//商品下架失败
    DELETE_GOODS_SUCCESS(380),//删除商品成功
    DELETE_GOODS_FAIL(381),//删除商品失败
    QUERY_ORDER_SUCCESS(390),//查询订单成功
    QUERY_ORDER_FAIL(391),//查询订单失败
    ADD_GOODS_TYPE_SUCCESS(510),//添加商品类别成功
    ADD_GOODS_TYPE_FAIL(511),//添加商品类别失败
    DELETE_ORDER_SUCCESS(520),//删除订单成功
    DELETE_ORDER_FAIL(521),//删除订单失败
    INTO_STORAGE_SUCCESS(530),//入库成功
    INTO_STORAGE_FAIL(531),//入库失败
    QUERY_BUYER_FLOW_SUCCESS(540),//查询买家流水成功
    QUERY_BUYER_FLOW_FAIL(541),//查询买家流水失败
    UPDATE_SELL_NUM_SUCCESS(550),//修改可销售数量成功
    UPDATE_SELL_NUM_FAIL(551),//修改可销售数量失败
    CHECK_STORE_SUCCESS(560),//审核小店成功
    CHECK_STORE_FAIL(561),//审核小店失败
    QUERY_SEND_BACK_ORDER_SUCCESS(570),//查询退货单成功
    QUERY_SEND_BACK_ORDER_FAIL(571),//查询退货单失败
    CHECK_SEND_BACK_SUCCESS(580),//审核退货单成功
    CHECK_SEND_BACK_FAIL(581),//审核退货单失败
    PRINT_SORT_ORDER_SUCCESS(590),//打印退货单成功
    PRINT_SORT_ORDER_FAIL(591),//打印退货单失败
    QUERY_SHOP_CART_SUCCESS(600),//购物车查询成功
    QUERY_SHOP_CART_FAIL(601), //购物车查询失败









    ;
    private final int state;
    StateEnum(int state){
        this.state=state;
    }

    public int getState() {
        return state;
    }
}
